<?php
require('includes/top.php');
$disapproved_id = $_REQUEST['disapprove_id'];

$sql="INSERT INTO disapproved_replacement(`id`,`type`) VALUES ('$disapproved_id','accessories')";
$result=mysql_query($sql);

$sql1="UPDATE replacement_request SET `approved` = '2' WHERE product_id = '".trim($disapproved_id)."' and type ='accessories'";
$result1=mysql_query($sql1);
echo 'Your Request has been submitted';
?>